package com.huadi.ssm.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LawexecutorExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LawexecutorExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLawExecutorIdIsNull() {
            addCriterion("law_executor_ID is null");
            return (Criteria) this;
        }

        public Criteria andLawExecutorIdIsNotNull() {
            addCriterion("law_executor_ID is not null");
            return (Criteria) this;
        }

        public Criteria andLawExecutorIdEqualTo(String value) {
            addCriterion("law_executor_ID =", value, "lawExecutorId");
            return (Criteria) this;
        }

        public Criteria andLawExecutorIdNotEqualTo(String value) {
            addCriterion("law_executor_ID <>", value, "lawExecutorId");
            return (Criteria) this;
        }

        public Criteria andLawExecutorIdGreaterThan(String value) {
            addCriterion("law_executor_ID >", value, "lawExecutorId");
            return (Criteria) this;
        }

        public Criteria andLawExecutorIdGreaterThanOrEqualTo(String value) {
            addCriterion("law_executor_ID >=", value, "lawExecutorId");
            return (Criteria) this;
        }

        public Criteria andLawExecutorIdLessThan(String value) {
            addCriterion("law_executor_ID <", value, "lawExecutorId");
            return (Criteria) this;
        }

        public Criteria andLawExecutorIdLessThanOrEqualTo(String value) {
            addCriterion("law_executor_ID <=", value, "lawExecutorId");
            return (Criteria) this;
        }

        public Criteria andLawExecutorIdLike(String value) {
            addCriterion("law_executor_ID like", value, "lawExecutorId");
            return (Criteria) this;
        }

        public Criteria andLawExecutorIdNotLike(String value) {
            addCriterion("law_executor_ID not like", value, "lawExecutorId");
            return (Criteria) this;
        }

        public Criteria andLawExecutorIdIn(List<String> values) {
            addCriterion("law_executor_ID in", values, "lawExecutorId");
            return (Criteria) this;
        }

        public Criteria andLawExecutorIdNotIn(List<String> values) {
            addCriterion("law_executor_ID not in", values, "lawExecutorId");
            return (Criteria) this;
        }

        public Criteria andLawExecutorIdBetween(String value1, String value2) {
            addCriterion("law_executor_ID between", value1, value2, "lawExecutorId");
            return (Criteria) this;
        }

        public Criteria andLawExecutorIdNotBetween(String value1, String value2) {
            addCriterion("law_executor_ID not between", value1, value2, "lawExecutorId");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameIsNull() {
            addCriterion("law_executor_name is null");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameIsNotNull() {
            addCriterion("law_executor_name is not null");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameEqualTo(String value) {
            addCriterion("law_executor_name =", value, "lawExecutorName");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameNotEqualTo(String value) {
            addCriterion("law_executor_name <>", value, "lawExecutorName");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameGreaterThan(String value) {
            addCriterion("law_executor_name >", value, "lawExecutorName");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameGreaterThanOrEqualTo(String value) {
            addCriterion("law_executor_name >=", value, "lawExecutorName");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameLessThan(String value) {
            addCriterion("law_executor_name <", value, "lawExecutorName");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameLessThanOrEqualTo(String value) {
            addCriterion("law_executor_name <=", value, "lawExecutorName");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameLike(String value) {
            addCriterion("law_executor_name like", value, "lawExecutorName");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameNotLike(String value) {
            addCriterion("law_executor_name not like", value, "lawExecutorName");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameIn(List<String> values) {
            addCriterion("law_executor_name in", values, "lawExecutorName");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameNotIn(List<String> values) {
            addCriterion("law_executor_name not in", values, "lawExecutorName");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameBetween(String value1, String value2) {
            addCriterion("law_executor_name between", value1, value2, "lawExecutorName");
            return (Criteria) this;
        }

        public Criteria andLawExecutorNameNotBetween(String value1, String value2) {
            addCriterion("law_executor_name not between", value1, value2, "lawExecutorName");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailIsNull() {
            addCriterion("law_executor_email is null");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailIsNotNull() {
            addCriterion("law_executor_email is not null");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailEqualTo(String value) {
            addCriterion("law_executor_email =", value, "lawExecutorEmail");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailNotEqualTo(String value) {
            addCriterion("law_executor_email <>", value, "lawExecutorEmail");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailGreaterThan(String value) {
            addCriterion("law_executor_email >", value, "lawExecutorEmail");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailGreaterThanOrEqualTo(String value) {
            addCriterion("law_executor_email >=", value, "lawExecutorEmail");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailLessThan(String value) {
            addCriterion("law_executor_email <", value, "lawExecutorEmail");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailLessThanOrEqualTo(String value) {
            addCriterion("law_executor_email <=", value, "lawExecutorEmail");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailLike(String value) {
            addCriterion("law_executor_email like", value, "lawExecutorEmail");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailNotLike(String value) {
            addCriterion("law_executor_email not like", value, "lawExecutorEmail");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailIn(List<String> values) {
            addCriterion("law_executor_email in", values, "lawExecutorEmail");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailNotIn(List<String> values) {
            addCriterion("law_executor_email not in", values, "lawExecutorEmail");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailBetween(String value1, String value2) {
            addCriterion("law_executor_email between", value1, value2, "lawExecutorEmail");
            return (Criteria) this;
        }

        public Criteria andLawExecutorEmailNotBetween(String value1, String value2) {
            addCriterion("law_executor_email not between", value1, value2, "lawExecutorEmail");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneIsNull() {
            addCriterion("law_executor_phone is null");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneIsNotNull() {
            addCriterion("law_executor_phone is not null");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneEqualTo(String value) {
            addCriterion("law_executor_phone =", value, "lawExecutorPhone");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneNotEqualTo(String value) {
            addCriterion("law_executor_phone <>", value, "lawExecutorPhone");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneGreaterThan(String value) {
            addCriterion("law_executor_phone >", value, "lawExecutorPhone");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("law_executor_phone >=", value, "lawExecutorPhone");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneLessThan(String value) {
            addCriterion("law_executor_phone <", value, "lawExecutorPhone");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneLessThanOrEqualTo(String value) {
            addCriterion("law_executor_phone <=", value, "lawExecutorPhone");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneLike(String value) {
            addCriterion("law_executor_phone like", value, "lawExecutorPhone");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneNotLike(String value) {
            addCriterion("law_executor_phone not like", value, "lawExecutorPhone");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneIn(List<String> values) {
            addCriterion("law_executor_phone in", values, "lawExecutorPhone");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneNotIn(List<String> values) {
            addCriterion("law_executor_phone not in", values, "lawExecutorPhone");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneBetween(String value1, String value2) {
            addCriterion("law_executor_phone between", value1, value2, "lawExecutorPhone");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPhoneNotBetween(String value1, String value2) {
            addCriterion("law_executor_phone not between", value1, value2, "lawExecutorPhone");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordIsNull() {
            addCriterion("law_executor_password is null");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordIsNotNull() {
            addCriterion("law_executor_password is not null");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordEqualTo(String value) {
            addCriterion("law_executor_password =", value, "lawExecutorPassword");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordNotEqualTo(String value) {
            addCriterion("law_executor_password <>", value, "lawExecutorPassword");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordGreaterThan(String value) {
            addCriterion("law_executor_password >", value, "lawExecutorPassword");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("law_executor_password >=", value, "lawExecutorPassword");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordLessThan(String value) {
            addCriterion("law_executor_password <", value, "lawExecutorPassword");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordLessThanOrEqualTo(String value) {
            addCriterion("law_executor_password <=", value, "lawExecutorPassword");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordLike(String value) {
            addCriterion("law_executor_password like", value, "lawExecutorPassword");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordNotLike(String value) {
            addCriterion("law_executor_password not like", value, "lawExecutorPassword");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordIn(List<String> values) {
            addCriterion("law_executor_password in", values, "lawExecutorPassword");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordNotIn(List<String> values) {
            addCriterion("law_executor_password not in", values, "lawExecutorPassword");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordBetween(String value1, String value2) {
            addCriterion("law_executor_password between", value1, value2, "lawExecutorPassword");
            return (Criteria) this;
        }

        public Criteria andLawExecutorPasswordNotBetween(String value1, String value2) {
            addCriterion("law_executor_password not between", value1, value2, "lawExecutorPassword");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}